﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace BiblioWebProyecto2013.Models
{
    [Table("Editoriales")]
    [Bind(Exclude = "Id")]
    public class Editorial
    {
        [Required(ErrorMessage = "El nombre de la editorial es requerido")]
        [DisplayName("Nombre de la editorial")]
        public String NombreEditorial { get; set; }
        
        [Key]
        [ScaffoldColumn(false)]
        public int IdEditorial { get; set; }

    }
}